Optimal. Leaf size=151 \[ 6 i b^2 c \text{PolyLog}\left (2,-i e^{i \cos ^{-1}(c x)}\right ) \left (a+b \cos ^{-1}(c x)\right )-6 i b^2 c \text{PolyLog}\left (2,i e^{i \cos ^{-1}(c x)}\right ) \left (a+b \cos ^{-1}(c x)\right )-6 b^3 c \text{PolyLog}\left (3,-i e^{i \cos ^{-1}(c x)}\right )+6 b^3 c \text{PolyLog}\left (3,i e^{i \cos ^{-1}(c x)}\right )-\frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x}-6 i b c \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right ) \left (a+b \cos ^{-1}(c x)\right )^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.213895, antiderivative size = 151, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {4628, 4710, 4181, 2531, 2282, 6589} \[ 6 i b^2 c \text{PolyLog}\left (2,-i e^{i \cos ^{-1}(c x)}\right ) \left (a+b \cos ^{-1}(c x)\right )-6 i b^2 c \text{PolyLog}\left (2,i e^{i \cos ^{-1}(c x)}\right ) \left (a+b \cos ^{-1}(c x)\right )-6 b^3 c \text{PolyLog}\left (3,-i e^{i \cos ^{-1}(c x)}\right )+6 b^3 c \text{PolyLog}\left (3,i e^{i \cos ^{-1}(c x)}\right )-\frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x}-6 i b c \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right ) \left (a+b \cos ^{-1}(c x)\right )^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4628
Rule 4710
Rule 4181
Rule 2531
Rule 2282
Rule 6589
Rubi steps
\begin{align*} \int \frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x^2} \, dx &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x}-(3 b c) \int \frac{\left (a+b \cos ^{-1}(c x)\right )^2}{x \sqrt{1-c^2 x^2}} \, dx\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x}+(3 b c) \operatorname{Subst}\left (\int (a+b x)^2 \sec (x) \, dx,x,\cos ^{-1}(c x)\right )\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x}-6 i b c \left (a+b \cos ^{-1}(c x)\right )^2 \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right )-\left (6 b^2 c\right ) \operatorname{Subst}\left (\int (a+b x) \log \left (1-i e^{i x}\right ) \, dx,x,\cos ^{-1}(c x)\right )+\left (6 b^2 c\right ) \operatorname{Subst}\left (\int (a+b x) \log \left (1+i e^{i x}\right ) \, dx,x,\cos ^{-1}(c x)\right )\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x}-6 i b c \left (a+b \cos ^{-1}(c x)\right )^2 \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right )+6 i b^2 c \left (a+b \cos ^{-1}(c x)\right ) \text{Li}_2\left (-i e^{i \cos ^{-1}(c x)}\right )-6 i b^2 c \left (a+b \cos ^{-1}(c x)\right ) \text{Li}_2\left (i e^{i \cos ^{-1}(c x)}\right )-\left (6 i b^3 c\right ) \operatorname{Subst}\left (\int \text{Li}_2\left (-i e^{i x}\right ) \, dx,x,\cos ^{-1}(c x)\right )+\left (6 i b^3 c\right ) \operatorname{Subst}\left (\int \text{Li}_2\left (i e^{i x}\right ) \, dx,x,\cos ^{-1}(c x)\right )\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x}-6 i b c \left (a+b \cos ^{-1}(c x)\right )^2 \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right )+6 i b^2 c \left (a+b \cos ^{-1}(c x)\right ) \text{Li}_2\left (-i e^{i \cos ^{-1}(c x)}\right )-6 i b^2 c \left (a+b \cos ^{-1}(c x)\right ) \text{Li}_2\left (i e^{i \cos ^{-1}(c x)}\right )-\left (6 b^3 c\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2(-i x)}{x} \, dx,x,e^{i \cos ^{-1}(c x)}\right )+\left (6 b^3 c\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_2(i x)}{x} \, dx,x,e^{i \cos ^{-1}(c x)}\right )\\ &=-\frac{\left (a+b \cos ^{-1}(c x)\right )^3}{x}-6 i b c \left (a+b \cos ^{-1}(c x)\right )^2 \tan ^{-1}\left (e^{i \cos ^{-1}(c x)}\right )+6 i b^2 c \left (a+b \cos ^{-1}(c x)\right ) \text{Li}_2\left (-i e^{i \cos ^{-1}(c x)}\right )-6 i b^2 c \left (a+b \cos ^{-1}(c x)\right ) \text{Li}_2\left (i e^{i \cos ^{-1}(c x)}\right )-6 b^3 c \text{Li}_3\left (-i e^{i \cos ^{-1}(c x)}\right )+6 b^3 c \text{Li}_3\left (i e^{i \cos ^{-1}(c x)}\right )\\ \end{align*}
Mathematica [B] time = 0.291687, size = 308, normalized size = 2.04 \[ 3 a b^2 c \left (-\frac{\cos ^{-1}(c x)^2}{c x}+2 \left (i \left (\text{PolyLog}\left (2,-i e^{i \cos ^{-1}(c x)}\right )-\text{PolyLog}\left (2,i e^{i \cos ^{-1}(c x)}\right )\right )+\cos ^{-1}(c x) \left (\log \left (1-i e^{i \cos ^{-1}(c x)}\right )-\log \left (1+i e^{i \cos ^{-1}(c x)}\right )\right )\right )\right )+b^3 c \left (-\frac{\cos ^{-1}(c x)^3}{c x}+3 \left (2 i \cos ^{-1}(c x) \left (\text{PolyLog}\left (2,-i e^{i \cos ^{-1}(c x)}\right )-\text{PolyLog}\left (2,i e^{i \cos ^{-1}(c x)}\right )\right )-2 \left (\text{PolyLog}\left (3,-i e^{i \cos ^{-1}(c x)}\right )-\text{PolyLog}\left (3,i e^{i \cos ^{-1}(c x)}\right )\right )+\cos ^{-1}(c x)^2 \left (\log \left (1-i e^{i \cos ^{-1}(c x)}\right )-\log \left (1+i e^{i \cos ^{-1}(c x)}\right )\right )\right )\right )+3 a^2 b c \log \left (\sqrt{1-c^2 x^2}+1\right )-3 a^2 b c \log (x)-\frac{3 a^2 b \cos ^{-1}(c x)}{x}-\frac{a^3}{x} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.161, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( a+b\arccos \left ( cx \right ) \right ) ^{3}}{{x}^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} 3 \,{\left (c \log \left (\frac{2 \, \sqrt{-c^{2} x^{2} + 1}}{{\left | x \right |}} + \frac{2}{{\left | x \right |}}\right ) - \frac{\arccos \left (c x\right )}{x}\right )} a^{2} b - \frac{a^{3}}{x} - \frac{b^{3} \arctan \left (\sqrt{c x + 1} \sqrt{-c x + 1}, c x\right )^{3} - 3 \, x \int \frac{\sqrt{c x + 1} \sqrt{-c x + 1} b^{3} c x \arctan \left (\sqrt{c x + 1} \sqrt{-c x + 1}, c x\right )^{2} +{\left (a b^{2} c^{2} x^{2} - a b^{2}\right )} \arctan \left (\sqrt{c x + 1} \sqrt{-c x + 1}, c x\right )^{2}}{c^{2} x^{4} - x^{2}}\,{d x}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{3} \arccos \left (c x\right )^{3} + 3 \, a b^{2} \arccos \left (c x\right )^{2} + 3 \, a^{2} b \arccos \left (c x\right ) + a^{3}}{x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{acos}{\left (c x \right )}\right )^{3}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \arccos \left (c x\right ) + a\right )}^{3}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]